package com.sokal.easycare.modules.shares.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sokal.easycare.common.persistence.Page;
import com.sokal.easycare.common.service.CrudService;
import com.sokal.easycare.modules.shares.entity.ExperienceSharing;
import com.sokal.easycare.modules.shares.dao.ExperienceSharingDao;

/**
 * 经验分享-结合软文分享、图像、视频Service
 * @author lihaipei
 * @version 2017-03-30
 */
@Service
@Transactional(readOnly = true)
public class ExperienceSharingService extends CrudService<ExperienceSharingDao, ExperienceSharing> {

	public ExperienceSharing get(String id) {
		return super.get(id);
	}
	
	public List<ExperienceSharing> findList(ExperienceSharing experienceSharing) {
		return super.findList(experienceSharing);
	}
	
	public Page<ExperienceSharing> findPage(Page<ExperienceSharing> page, ExperienceSharing experienceSharing) {
		return super.findPage(page, experienceSharing);
	}
	
	@Transactional(readOnly = false)
	public void save(ExperienceSharing experienceSharing) {
		super.save(experienceSharing);
	}
	
	@Transactional(readOnly = false)
	public void delete(ExperienceSharing experienceSharing) {
		super.delete(experienceSharing);
	}
	
}